﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;

namespace Common.Encryption
{
    public class InverseEncryption : IInverseEncryption
    {
        public string InverseEncrypt(string origin)
        {
            byte[] result = Encoding.Default.GetBytes(origin.Trim());    
            MD5 md5 = new MD5CryptoServiceProvider();
            byte[] output = md5.ComputeHash(result);
            return BitConverter.ToString(output).Replace("-", "");
        }
    }
}
